﻿using EMall.Domain;

namespace EMall.IdentityService.Menus
{
    public interface IMenuRepository : IRepository<Menu, int>
    {
        Task<Menu?> GetByNameAsync(string name);
        Task<List<Menu>> GetListByParentIdAsync(int parentId);
        Task<List<Menu>> GetListByParentCodeAsync(string parentCode);
        Task<Menu?> GetLastChildByParentIdAsync(int parentId);
    }
}
